{extend name="public:index"/}
{block name="title"}{:sysconf('title')}{/block}
{block name="content"}
<section class="My_shoucang">
    <div class="top">
        <p class="p1"><a href="javascript:history.back(-1)"></a></p>
        <p class="p2">消息中心</p>
        <p class="p3"></p>
    </div>
    <div style="height:2.5rem;"></div>
    <div class="newsbox">
        {if condition="$list"}
        <ul>
            {foreach name="list" item="vo"}
            <li {if condition="$vo.is_read eq 0"} style="border-left:2px solid #ff0000;" {/if}>
                <a href="{:url('User/msgshow',['id'=>$vo.id])}">
                    <p class="p1 {if condition='$vo.status eq 1'}pdu{/if}">{$vo.title}</p>
                    <p class="p2" style="height:1rem;">{$vo['add_time']}</p>
                </a>
            </li>
            {/foreach}
        </ul>
        {else}
        <div class="nofind"><img src="__HOME__/images/nodd.png" alt=""><p>暂时没有消息</p></div>
        {/if}
    </div>
</section>
<style type="text/css">
    .newsbox ul{}
    .newsbox ul li{background-color: #fff;padding: 0 0.5rem;margin-top: 1px;padding-bottom: 0.5rem;}
    .newsbox ul li .p1{font-size: 0.6rem;line-height: 1.6rem;height: 1.6rem;overflow: hidden;}
    .newsbox ul li .p2{color: #999;line-height: 1rem;height: 2rem;overflow: hidden;font-size: 0.5rem;}
    .newsbox ul li .p3{color: #ccc;font-size: 0.5rem;}
    .newsbox ul li .pdu{color: #999;}
</style>
{/block}